/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package DTO;

public class CChiTietHoaDon extends CId{
    public CChiTietHoaDon(){}
    
    private long sanPhamId;
    private int soLuong;
    private Double donGia;
    private Double thanhTien;
    private Boolean isTang;
    private Double giamGia;//giam gia theo ty le phan % gia thanh
    private Double tienThanhToan;    
    private long hoa_don_id;
    private String don_vi;
    private String ten_san_pham;
    private Double tientra;
    public void setTienTra(Double tientra){
        this.tientra = tientra;
    }
    public Double getTienTra(){
        return this.tientra;
    }
    
    public void setTenSanPham(String tsp){
        this.ten_san_pham = tsp;
    }
    public String getTenSanPham(){
        return this.ten_san_pham;
    }
    public void setSoLuong(int soluong){
        this.soLuong =soluong;
    }
    public int getSoLuong(){
        return this.soLuong;
    }
    public void setDonVi(String dv){
        this.don_vi = dv;
    }
    public String getDonVi(){
        return this.don_vi;
    }
    public void setHoaDonId(long hoadonid){
        this.hoa_don_id = hoadonid;
    }
    
    public long getHoaDonId(){
        return this.hoa_don_id;
    }
    
    public void  setTienThanhToan(Double tienthanhToan){
        this.tienThanhToan = tienthanhToan;
    }
    
    public Double getTienThanhToan(){
        return this.tienThanhToan;
    }
    
    public void setGiamGia(Double giamgia){
        this.giamGia = giamgia;
    }
        
    public Double getGiamGia(){
        return this.giamGia;
    }
    public void setTang(Boolean istang){
        this.isTang = isTang;
    }
    public Boolean getTang(){
        return this.isTang;
    }
    
    public void setThanhTien(Double thanhtien){
        this.thanhTien = thanhtien;                
    }
    
    public Double getThanhTien(){
        return this.thanhTien;
    }
    
    public void setDongia(Double dongia){
        this.donGia = dongia;
    }
    public Double getDongia(){
        return this.donGia;
    }
    
    
    
    public void setSanPhamId(long id){
        this.sanPhamId = id;
    }
    
    public long getSanPhamId(){
        return this.sanPhamId;
    }
}
